/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ads.hash;

import java.util.Date;

/**
 *
 * @author framet-lap
 */
public class Participant {
    public static final int MODULO = 1000;
    private int id;
    private String firstname;
    private String name;
    private int birthyear; // last two digits
    private String location;
    private double timeInMillis;
    private String category;
    
    public Participant(int id){
        this.id = id;
    }

    public Participant(int id, String firstname, String name, int birthyear, String location, double timeInMillis, String category) {
        this.id = id;
        this.firstname = firstname;
        this.name = name;
        this.birthyear = birthyear;
        this.location = location;
        this.timeInMillis = timeInMillis;
        this.category = category;
    }
    
    @Override
    public int hashCode(){
        return id%MODULO;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBirthdate() {
        return birthyear;
    }

    public void setBirthdate(int birthyear) {
        this.birthyear = birthyear;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public double getTimeInMillis() {
        return timeInMillis;
    }

    public void setTimeInMillis(double timeInMillis) {
        this.timeInMillis = timeInMillis;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }
    
    
}
